<script>
export default {
  name: "pop-up-box"
}
</script>

<template>
  <section class="layui-panel pop-up-box">
    <div class="header">
      <div class="header-left">
        <slot name="header-left"></slot>
      </div>
      <div class="header-right">
        <slot name="header-right"></slot>
      </div>
    </div>
    <div class="body">
      <slot name="body"></slot>
    </div>
    <div class="footer">
      <slot name="footer"></slot>
    </div>
  </section>
</template>

<style scoped lang="less">
.pop-up-box {
  width: 400px;
  margin: 100px auto;
  padding: 10px;

  .header {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .body {
    width: 100%;
    height: 50px;
  }

  .footer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}
</style>